﻿using System;
using System.Collections.Generic;
using SearchContract.ViewModels;
using WinRTFramework.FrameworkConfiguration;

namespace SearchContract.WinRTFrameworkConfiguration
{
    class IoCAdapter : IIoCAdapter
    {
        public IEnumerable<Type> GetAllRegisteredTypes()
        {
            yield return typeof(MainPageViewModel);
            yield return typeof(DefaultSearchablePageViewModel);
            yield return typeof(InferiorSearchablePageViewModel);
        }

        public object GetInstanceOfType(Type t)
        {
            return Activator.CreateInstance(t);
        }
    }
}
